<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:82:"/app/wwwroot/zhangwei/www/gongzi/public/../application/index/view/index/index.html";i:1671875145;s:75:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/layout/default.html";i:1671875144;s:75:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/common/sidenav.html";i:1671875144;s:74:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/common/script.html";i:1671875145;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo (isset($title) && ($title !== '')?$title:'工资条'); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>" rel="stylesheet">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="/assets/js/html5shiv.js"></script>
    <script src="/assets/js/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var require = {
            config: <?php echo json_encode($config); ?>
        };
    </script>
</head>
<body>
<?php if(!$is_mobile && !empty($back_btn)): ?>
<header class="mui-bar mui-bar-nav">
    <?php if($back_btn == 'back'): ?>
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="javascript:window.history.back();"></a>
    <?php elseif($back_btn == 'hide'): else: ?>
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="<?php echo $back_btn; ?>"></a>
    <a href="<?php echo $back_btn; ?>">&nbsp;</a>
    <?php endif; ?>
    <h1 class="mui-title"><?php echo (isset($title) && ($title !== '')?$title:''); ?></h1>
</header>
<?php endif; ?>
<div class="mui-content">
    <div class="gzt_head">
        <div class="text<?php echo $payslip_config['open_hidden_money']?' hide1':''; ?>">
            <?php if($payslip_list): ?>
            <a class="gz_text" href="<?php echo url('index/detail', ['month' => $month]); ?>">
                <span class="gz_num"><?php echo $payslip_config['open_hidden_money']?'****':$payslip_total; ?></span><i class="mui-icon mui-icon-arrowright"></i>
            </a>
            <?php else: ?>
            <a class="gz_text">
                <span class="gz_num"><?php echo $payslip_config['open_hidden_money']?'****':$payslip_total; ?></span>
            </a>
            <?php endif; ?>
            <p>本月实发工资<i class="icon" data-value="<?php echo $payslip_total; ?>"></i></p>
        </div>
        <div class="select">
            <span id="rl_text"><?php echo date("Y年m月",strtotime($month)); ?></span>
            <span class="mui-icon mui-icon-arrowdown"></span>
            <button id="rl_but" class="btn mui-btn mui-btn-block"><?php echo date("Y年m月",strtotime($month)); ?></button>
        </div>
    </div>
    <form id="post-form" class="layui-form" role="form" data-toggle="validator" method="GET" action="<?php echo url('index/index'); ?>">
        <input type="hidden" name="year" value="<?php echo $year; ?>">
        <input type="hidden" name="month" value="<?php echo $month; ?>">
    </form>
    <div class="main">
        <div class="bg"></div>
        <div class="mui-card gz_item">
            <?php if($payslip_list): foreach($payslip_list as $item): ?>
            <a class="item" href="<?php echo url('index/detail', ['month' => $month]); ?>">
                <div class="text"><?php echo $item['title']; ?></div>
                <?php if($item['is_view']): ?>
                <span class="tag color_4873C1">已确认</span>
                <?php else: ?>
                <span class="tag color_EF4033">未确认</span>
                <?php endif; ?>
            </a>
            <?php endforeach; endif; ?>
        </div>
        <div class="mui-card gz_item2">
            <ul class="mui-table-view mui-grid-view">
                <li class="mui-table-view-cell mui-col-xs-6">
                    <h3><?php echo $total_money; ?></h3>
                    <p>总收入工资</p>
                </li>
                <li class="mui-table-view-cell mui-col-xs-6">
                    <h3><?php echo $avg_money; ?></h3>
                    <p>月平均工资</p>
                </li>
            </ul>
            <div class="select">
                <span id="year_text"><?php echo $year; ?>年</span>
                <span class="mui-icon mui-icon-arrowdown"></span>
                <button id="year_but" class="btn mui-btn mui-btn-block"><?php echo $year; ?>年</button>
            </div>
            <div class="tongji">
                <?php if($year_chart): foreach($year_chart as $chart): ?>
                <div class="item">
                    <span><?php echo $chart['month']; ?></span>
                    <div class="bar">
                        <div class="bar_color" style="width:<?php echo $chart['width']; ?>%">
                            <div class="text"><?php echo $chart['money']; ?></div>
                        </div>
                    </div>
                </div>
                <?php endforeach; endif; ?>
            </div>
        </div>
    </div>
    <div class="nav">
        <ul class="mui-table-view mui-grid-view">
            <li class="mui-table-view-cell mui-col-xs-6 active">
                <a href="<?php echo url('index/index'); ?>"><span class="icon"></span><p>工资条</p></a>
            </li>
            <li class="mui-table-view-cell mui-col-xs-6">
                <a href="<?php echo url('index/my'); ?>"><span class="icon"></span><p>我的</p></a>
            </li>
        </ul>
    </div>
</div>
<link rel="stylesheet" type="text/css" href="/assets/index/css/mui.min.css">
<link rel="stylesheet" type="text/css" href="/assets/index/css/css.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>">
<link rel="stylesheet" type="text/css" href="/assets/index/css/mui.picker.min.css" />
<script src="/assets/index/js/mui.min.js"></script>
<script src="/assets/index/js/mui.picker.min.js"></script>
<script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
<style>
    body,html {
        position: absolute;
        width: 100%;
        left: 0;
        top:0;
        bottom: 0;
        right: 0;
        height: 100vh;
    }
</style>
</body>
</html>